widget: refactor gesture integration
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Apr 2014 18:55:30 +0000 (20:55 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 May 2014 17:54:25 +0000 (19:54 +0200)
commit7a71c163179559c511edddf0e46de1f1a0bfbd7d
treee97c6034f34241d37979d1420ac29fe49ba1ab8a
parentb0a23dbfbdafe83daee16517875a8c2b532af121
widget: refactor gesture integration

Listen for notify::sequence-state-changed on the controller, so the
only way to manipulate a sequence state are gtk_gesture_set_sequence_state()
and gtk_gesture_set_state().

Also, make use of gesture groups, so the sequence state is set at once
on all gestures pertaining to a single group. Within a widget, if a sequence
is claimed on one group, it is made to be denied on every other group.
gtk/gtkwidget.c
gtk/gtkwidget.h